#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a[] = { 1,2,3,4,5,6,7,8,9,10 };
	int cn = sizeof(a) / sizeof(a[0]);
	for (int i = 0; i < cn; i++)
		printf("%d ", a[i]);
	printf("\n");
	for (int j = 0; j < cn-1 ; j++)
	{
		for (int i = 0; i < cn - j - 1; i++)
		{
			if (a[i] < a[i + 1])
			{
				int temp = a[i];
				a[i] = a[i + 1];
				a[i + 1] = temp;
			}
		}
	}
	for (int i = 0; i < cn; i++)
		printf("%d ", a[i]);
	printf("\n");

	return 0;
}